package com.aclass.xqx.classscreen.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

import com.aclass.xqx.classscreen.ui.VideoActivity;

import java.util.List;

/**
 * Created by xqx on 2017/11/3.
 */

public class AlramReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
            String time= intent.getStringExtra("time");
            Log.e("ATG",time+"");
            intent = new Intent(context, VideoActivity.class);
            intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            intent.putExtra("time",time);
            context.startActivity(intent);
    }
}
